package com.linchong.jvm.gc;

import lombok.Data;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2020-11-18 20:34
 * @Description: User$
 */
@Data
public class User {

	private byte[] bs = new byte[1024];

	private String userId;

	public User(String userId){
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "User='" + userId;
	}

	@Override
	protected void finalize() throws Throwable {
		super.finalize();
		System.out.println("now finalize userId="+userId);
	}


}
